package com.fastadmin.thread;
import com.fastadmin.pojo.User;
import io.netty.util.concurrent.FastThreadLocal;
import org.joda.time.DateTime;

public class UserThreadLocal {
    private static final FastThreadLocal<User> LOCAL = new FastThreadLocal<User>();
    private UserThreadLocal() {}
    public static void set(User user) {
        LOCAL.set(user);
    }
    public static User get() {
        return LOCAL.get();
    }
}
